﻿
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<th:block th:include="common/common::common('修改菜单表')"/>
<script src="/static/base/menu/button/edit.js" charset="utf-8"></script>
</head>
<body style="height: auto">
<form class="layui-form layui-form-pane" id="editMenuForm" th:object="${menu}">
    <div class="layui-form-body">
        <input type="text" value="3" id="type" name="type" style="visibility: hidden;">
        <input type="text" value="/" id="href" name="href" style="visibility: hidden;">
        <div class="layui-form-item">
            <label for="title" class="layui-form-label">按钮名称
                <span style="color: red">*</span>
            </label>
            <div class="layui-input-block">
                <input type="text" id="title" name="title" maxlength="30"
                       th:field="*{title}" autocomplete="off"
                       lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="perms" class="layui-form-label">权限标识
                <span style="color: red">*</span>
            </label>
            <div class="layui-input-block">
                <input type="text" id="perms" name="perms" maxlength="100"
                       th:field="*{perms}" autocomplete="off"
                       lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">按钮状态</label>
            <div class="layui-input-block" th:with="dicts=${@dict.getType('menu_visible')}">
                <input type="radio" name="visible"
                       th:each="dict : ${dicts}"
                       th:title="${dict.dictLabel}"
                       th:value="${dict.dictValue}"
                       th:attr="checked=${dict.dictValue eq menu.visible?true:false}">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="description" class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" id="description" name="description" maxlength="200"
                       th:field="*{description}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <input type="text" th:value="*{id}" id="id" name="id" style="visibility: hidden;">
    </div>
    <div class="form-footer">
        <button type="button" class="button-sub" lay-submit lay-filter="editSysMenu">提交</button>
        <button type="button" class="button-close" id="buttonClose">关闭</button>
    </div>
</form>

</body>
</html>